package com.goldsign.pay.provider.accountbase.controller;

import com.goldsign.pay.provider.accountbase.to.CreateAccountRespDTO;
import com.goldsign.pay.provider.accountbase.service.AccountbaseApi;
import com.goldsign.pay.provider.accountbase.to.CreateAccountReqDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by xiaojingjing on 2018/5/16.
 */
@RestController
public class AccountBaseController {

    @Autowired
    private AccountbaseApi accountbaseApi;

    @RequestMapping(value = "/createAccount", method = RequestMethod.POST)
    @ResponseBody
    public CreateAccountRespDTO createAccount(@RequestBody CreateAccountReqDTO req)
    {
        CreateAccountRespDTO createAccountRespDTO = accountbaseApi.createAccount(req);
        return createAccountRespDTO;
    }
}
